tools/libxl: Do not set stream->rc in stream_complete()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 27 Jul 2015 16:47:25 +0000 (17:47 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 28 Jul 2015 13:02:18 +0000 (14:02 +0100)
commit4d3e1ee37e12c13a9cefb9b1442fa4148363a6f4
tree40411ebc6fa8f3664097973a03e294b11da8d35a
parent2c4f5125fd5e343604a620bc621848c4bd1e6080
tools/libxl: Do not set stream->rc in stream_complete()

Only ever set stream->rc in check_all_finished().  The first version of
the migration v2 series had separate rc and joined_rc parameters, where
this logic worked.  However when combining the two, the teardown path
fails to trigger if stream_complete() records stream->rc itself.  A side
effect of this is that stream_done() needs to take an rc parameter.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_stream_read.c
tools/libxl/libxl_stream_write.c